package com.hou.serviceorder1.serviceorder;

import org.springframework.web.client.RestTemplate;

public class TestSe {

    public static void main(String[] args) {
        //测试信号并发量
        for (int i = 0; i < 10; i++) {
            new Thread(()->{
                //访问目标接口
                RestTemplate restTemplate = new RestTemplate();
                restTemplate.getForObject("http://localhost:8081/order/name",String.class);
            }).start();
        }
    }
}
